package books;

import operation.IOperation;

public class BookList {
    private final int MaxSize = 15 ;
    public Book[] books ;
    private int bookUseSize ;

    public BookList() {
        this.books = new Book[MaxSize] ;
             this.books[0] =  new Book("红楼梦",10,"曹雪芹","小说");
             this.books[1] =  new Book("三体",20,"刘慈欣","小说");
             this.books[2] =  new Book("骆驼祥子",11,"老舍","小说");
        this.bookUseSize = 3;
    }
    public int getMaxSize(){
        return this.MaxSize ;
    }
    public int getBookSize(){
        return this.bookUseSize ;
    }
    public void setBookSize(int size){
        this.bookUseSize = size ;
    }
    public Book getBook(int tmp){
        return books[tmp] ;
    }
    public void setBooks(Book book ,int tmp){
        this.books[tmp] = book ;
    }


}
